<!-- i18n 视图：语言切换 -->
<template>
  <div>
    <h2>国际化示例</h2>
    <p>{{ $t('title') }}</p>
    <button @click="set('zh')">中文</button>
    <button @click="set('en')">English</button>
  </div>
</template>

<script>
export default { name: 'I18nDemoPage', methods: { set(l){ this.$i18n.locale = l } } }
</script>

